using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MessagePackage
{
    public Player _player;
    public bool _isFall;

    public void OnCollisionEnter(Collision collision)
    {
        Player player = collision.gameObject.GetComponent<Player>();
        if (player != null && player._isTeamEscort && _isFall)
        {
            _player = player;
            //take the package
        }

        //if reaches the check point, message is able to open the obstacle
        //if reaches the final destination, the team-escort wins
    }
}
